<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Auth::routes();

//Route::get('/home', 'HomeController@index')->name('home');
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');

Route::group(['middleware' => ['auth']], function () {

    Route::get('/', function () {
        return view('index');
    });

    Route::get('/member_add','MemberController@member_add')->name('member_add');
    Route::post('/member_add','MemberController@member_add')->name('member_add');
    Route::post('/member_edit','MemberController@member_edit')->name('member_edit');
    Route::get('/member_edit/{id}','MemberController@member_edit')->name('member_edit');
    Route::get('/member_list','MemberController@member_list')->name('member_list');
    Route::get('/member_del','MemberController@member_del')->name('member_del');
    Route::post('/member_del','MemberController@member_del')->name('member_del');
    Route::post('/member_password','MemberController@member_password')->name('member_password');



});











